package com.ddxcloud.movie.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import com.ddxcloud.common.mybatis.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
public class Order extends BaseEntity {

    @Schema(description = "订单ID")
    @TableId
    private Long orderId;

    @Schema(description = "AppId")
    private String appId;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "订单编号")
    private String orderSn;

    @Schema(description = "第三方订单号")
    private String outTradeNo;

    @Schema(description = "订单状态")
    private Integer orderStatus;

    @Schema(description = "订单金额（应付）")
    private BigDecimal orderAmount;

    @Schema(description = "付款金额（实付）")
    private BigDecimal payAmount;

    @Schema(description = "退款金额")
    private BigDecimal refundAmount;

    @Schema(description = "结算价")
    private BigDecimal settlementPrice;

    @Schema(description = "佣金（以结算价计算）")
    private BigDecimal commission;

    @Schema(description = "版本号")
    @Version
    private Integer version;
}
